﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NetworkIndexer.CoreExtensions.ServiceLocation;
using StructureMap;
using NetworkIndexer.Core.Repositories;
using NetworkIndexer.Core.Repositories.Concrete;
using NetworkIndexer.Core.Service;
using NetworkIndexer.Core.Service.Concrete;

namespace NetworkIndexer.Core.Configuration
{
    public class ServiceLocatorConfiguration :  IServiceLocatorConfiguration
    {
        public void Configure(ConfigurationExpression configure)
        {  
            //Repository COnfiguration
            configure.ForRequestedType<IIndexingRepository>().TheDefaultIsConcreteType<IndexingRepository>();
            configure.For<IIndexingRepository>().Use<IndexingRepository>().Named("Test");
            

            //Service Configuration
            configure.ForRequestedType<IShareService>().TheDefaultIsConcreteType<ShareService>();
        }
    }
}
